import { createApp } from 'vue'
import pinia from './store/pinia'
// import { createPinia } from 'pinia'
// const pinia = createPinia()


import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'


import {getChartData} from './api/manager'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'


const app = createApp(App)
app.use(pinia)
import router from './router'

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.config.globalProperties.$api = { getChartData }


app.use(router)

app.use(ElementPlus)
import 'virtual:windi.css'

app.mount('#app')
